package ai

import "fmt"

var third int32 = 0

type MonsterBackState struct {
}

func (backState MonsterBackState) Enter() {
	fmt.Println("enter() MonsterBackState")
}

func (backState MonsterBackState) Exit() {
	fmt.Println("Exit() MonsterBackState")
}

func (backState MonsterBackState) Update() {
	fmt.Println("Update() MonsterBackState")
}
func (backState MonsterBackState) CheckChange() StateInterface {
	fmt.Println("CheckChange() MonsterBackState")
	third++
	if third == 10 {
		return StateMap[idle]
	}
	return StateMap[back]
}
